/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.softtown.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 出库单表
 *
 * @author
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("comp_outbound_order")
public class CompOutboundOrderEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 * id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * 公司id
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "公司id")
	private Long compId;
	/**
	 * 出库人员
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "出库人员")
	private Long emplId;

	/**
	 * 出库时间
	 * isNullAble:1
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "出库时间")
	private Date outDate;
	/**
	 * 订单类型 0：销售订单   1：租赁订单
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "订单类型 0：销售订单   1：租赁订单")
	private Integer orderType;

	/**
	 * 销售单号
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "销售单号")
	private Long saleOrderId;


	/**
	 * 租赁单号
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "租赁单号")
	private Long leaseOrderId;

	/**
	 * 运费承担方
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "运费承担方")
	private String  payer;


	/**
	 * 运费
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "运费")
	private BigDecimal freight;

	/**
	 * 提货人
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "提货人")
	private String 	consignee;


	/**
	 * 联系方式
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "联系方式")
	private String 	contactType;

	/**
	 * 快递单号
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "快递单号")
	private String 	courier;

	/**
	 * 备注
	 * isNullAble:0
	 */
	@ApiModelProperty(value = "备注")
	private String 	remark;

	/**
	 * 创建者
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "创建者")
	private Long creator;

	/**
	 * 创建时间
	 * isNullAble:1
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
	private Date createDate;

	/**
	 * 更新者
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新者")
	private Long updater;

	/**
	 * 更新时间
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateDate;

	/**
	 * 更新时间戳
	 * isNullAble:1
	 */
	@ApiModelProperty(value = "更新时间戳")
	private String updateTimestamp;

	/**
	 * 逻辑删除
	 * isNullAble:1,defaultVal:0
	 */
	@ApiModelProperty(value = "逻辑删除")
	private Integer isDeleted;

}
